import com.lbi.core.events.EventDispatcher;
import com.lbi.core.helper.Delegate;

import asunit.framework.TestCase;

/**
 * @author Michael Forrest
 */
class core.events.EventDispatcherTest extends TestCase {
	private var className : String = "EventDispatcherTest";
	function testNoConflictsBetweenLocals():Void{
		var item1:EventDispatcher = addAnItem();
		var item2:EventDispatcher = addAnItem();
		
	}

	private function addAnItem() : EventDispatcher{
		var item:EventDispatcher = new EventDispatcher();
		item.addEventListener("test",Delegate.create(this, onTestEvent));
		return item;
	}

	private function onTestEvent() : Void {
		
	}

}